package com.igorkundovic.guitarstab.beans;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.UniqueConstraint;

import org.apache.tapestry5.beaneditor.Validate;
import org.hibernate.annotations.NaturalId;

import com.igorkundovic.guitarstab.Country;
import com.igorkundovic.guitarstab.Genre;
import com.igorkundovic.guitarstab.User;


@Entity
public class UserBean implements User,Serializable {

	@Id
	@GeneratedValue
	private Long id;
	@Basic
	private String userName;
	@Basic
	private String password;
	@Basic
	private String email;
	@Basic
	private Country country;
	@Basic
	private Genre genre;
	
	public UserBean() {
		// TODO Auto-generated constructor stub
	}
	
	public Country getCountry() {
		// TODO Auto-generated method stub
		return country;
	}

	public String getEmail() {
		// TODO Auto-generated method stub
		return email;
	}

	public Genre getGenre() {
		// TODO Auto-generated method stub
		return genre;
	}

	public String getPassword() {
		// TODO Auto-generated method stub
		return password;
	}

	public String getUserName() {
		// TODO Auto-generated method stub
		return userName;
	}

	public void setCountry(Country country) {
		// TODO Auto-generated method stub
		this.country = country;
	}

	public void setEmail(String email) {
		// TODO Auto-generated method stub
		this.email = email;

	}

	public void setGenre(Genre genre) {
		// TODO Auto-generated method stub
		this.genre = genre;
	}

	public void setPassword(String password) {
		// TODO Auto-generated method stub
		this.password = password;
	}

	public void setUserName(String userName) {
		// TODO Auto-generated method stub
		this.userName = userName;
	}

	public Long getId() {
		// TODO Auto-generated method stub
		return id;
	}

}
